Repository navigation
fix(editor): menus keep under the menu bar, stop at three quarters of the window and show a more-below hint (0.37.0) - #50
Merged
Conversation
… of the window, and a cut-off menu shows a fade and a pill while rows remain below Bar menus capped themselves at the room under the bar with a 120 px floor, so in a short window the floor pushed them past the bottom and they were moved up over the bar. Submenus, the folded menus beside More menus and the right-click menus (layers, canvas, pages, crumbs) had only the stylesheet's 100vh - 8px cap and were clamped to 4 px from the window top, over the bar. Bar menus now keep their top under their button and take min(75% of the window, room to the bottom). Submenus and the More cascade take the same cap from the bar's bottom edge and never go above it; they still open beside their row. Right-click menus keep opening at the pointer and take the same floor and cap. Rows live in a .fw-menu-list scroller inside the card, whose mask fades the bottom rows while a 56 by 12 pill shows that rows remain below; it is in place on the first frame, fades out at the last row and back in when scrolled up. Arrow keys, Home and End keep the focused row above the fade. The context menu unit test reads separators from the list instead of the card.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(editor): menus keep under the menu bar, stop at three quarters of the window and show a more-below hint (0.37.0)
Summary
min(75% of the window, room to the bottom)tall; the rest scrolls. Cause:Menubar.placecapped at the room under the bar with a 120 px floor, so with less than 124 px of room the floor pushed the menu past the bottom andMath.min(top, ...)moved it up over the bar.menuCap(barFloor())) and their top is clamped to at leastbarFloor(); they still open beside their row. Cause:besidehad no inline cap (only the stylesheet'scalc(100vh - 8px)) and was clamped to 4 px from the window top.showContextMenu'splace, keep their pointer-corner placement but take the bar floor and the cap before measuring. Cause: the same 4 px clamp and stylesheet cap..fw-menu-listscroller inside the.fw-menucard; the list's mask fades the bottom rows and a 56 by 12.fw-menu-hintpill shows while rows remain below, in place on the first painted frame, out in 160 ms at the last row, back in over 490 ms. Glass tokens--glass-bgand--glass-border. The pill is not.fw-menu-morebecause that class is already the More menus button.keepInView, list-only scrolling).native-menu.tsis untouched.tests/unit/ui/context-menu.test.tsread the separators from the card's children; it now reads them from.fw-menu-list(the smallest hand edit, one selector).Commits
Version
v0.37.0 (release commit is last). Bumped from 0.36.0:
VERSION,frontend/package.json, the two own-version fields offrontend/package-lock.json,src-tauri/tauri.conf.json,src-tauri/Cargo.toml, theformwebentry ofsrc-tauri/Cargo.lock,native/Cargo.toml, the four own crates innative/Cargo.lock,backend/app/config.py, the README badge,.docs/wiki/Home.mdand bothformweb-harnessskill files.CHANGELOG.mdhas a 0.37.0 section that also covers the unreleased commits on main since v0.36.0 (licence notices, Agent Connect, origins, MCP fixes). No committed demo bundles (frontend/public/demosis site data, not built output).Checks
npm run build(tsc --noEmit && vite build): clean.vitest run: 35 files, 749 tests passed.origin/mainfor before numbers; the 1871x1080, 1280x720 and 800x320 sizes; a nested submenu inside a bar menu (none was reachable without a site); the hint timings (part way at 80 ms, gone by 380 ms, back by 750 ms); reduced motion; type-ahead next to the fade; the window tests intests/window(Playwright with the service); the desktop app on any system; Firefox, Safari and WebKitGTK; a screen reader.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.